package com.pioneer.web.stock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pioneer.web.stock.domain.StoDec;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
* @author aom-star@outlook.com
* @description 针对表【sto_decrease】的数据库操作Service
* @createDate 2025-05-25 14:07:32
*/
public interface IStoDecService extends IService<StoDec> {

    StoDec select(Long decId);

    @Transactional(rollbackFor = Exception.class)
    int insertDec(StoDec dec);

    @Transactional(rollbackFor = Exception.class)
    int updateDec(StoDec dec);

    @Transactional(rollbackFor = Exception.class)
    boolean deleteStoDec(List<Long> list);

    boolean approveStoDec(StoDec stoDec);
}
